package com.si.anddos.library.main;

import java.util.Date;

import android.text.format.Time;

/**
 * 
 * @author Carlos Martinez
 *
 */

public class AccountDetail {

	private String email;
	private Date billedUntil;
	private long currentSpace;
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setBilledUntil(Date billedUntil) {
		this.billedUntil = billedUntil;
	}
	
	public boolean isBilled() {
		Date today = new Date();
		if (this.billedUntil.after(today)) {
			return true;
		} else {
			return false;
		}
	}

	/**
	 * 
	 * @return Returs null for free account.
	 */
	public Date getBilledUntil() {
		return billedUntil;
	}
	
	public void setCurrentSpace(long currentSpace) {
		this.currentSpace = currentSpace;
	}
	
	public long getCurrentSpace() {
		return currentSpace;
	}
}
